package conf

import (
	"k8s.io/client-go/kubernetes"
	"k8s.io/client-go/tools/clientcmd"
)

func K8S() {
	kubeconfig := "conf/k8sConf/config"
	config, err := clientcmd.BuildConfigFromFlags("", kubeconfig)
	if err != nil {
		panic(err.Error())
	}

	clientcmd, err := kubernetes.NewForConfig(config)
	if err != nil {
		panic(err.Error())
	}

	KuberConfigSet = clientcmd

}
